﻿using System;
using System.Windows.Forms;
using SManage.Core;

namespace SManage
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (!Initialization.Initialized) {
                var initForm = new InitializationForm();
                Application.Run(initForm);
                if (initForm.DialogResult != DialogResult.Cancel) { 
                    Application.Run(new MainFrm());
                }
            } else {
                Application.Run(new MainFrm());
            }
        }
    }
}